<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"

>

<h:head>

    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>通知发布</title>

    <link href="../../css/bootstrap.min.css?v=3.3.6" rel="stylesheet"/>
    <link href="../../css/font-awesome.css?v=4.4.0" rel="stylesheet"/>
    <link href="../../css/plugins/iCheck/custom.css" rel="stylesheet"/>
    <link href="../../css/plugins/summernote/summernote.css" rel="stylesheet"/>
    <link href="../../css/plugins/summernote/summernote-bs3.css" rel="stylesheet"/>
    <link href="../../css/animate.css" rel="stylesheet"/>
    <link href="../../css/style.css?v=4.1.0" rel="stylesheet"/>

</h:head>

<h:body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="col-sm-3">
                <div class="ibox float-e-margins">
                    <div class="ibox-content mailbox-content">
                        <div class="file-manager">
                            <div class="space-25"></div>
                            <h5>文件夹</h5>
                                 <ul class="folder-list m-b-md" style="padding: 0">
                                    <li>
                                         <a href="mail_show_tostudents.xhtml"> <i class="fa fa-file-text-o"></i> 返回通知列表 <span class="label label-danger pull-right">#{notification.allnum}</span>
                                         </a>
                                     </li>
                                 </ul>

                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-sm-9 animated fadeInRight">
                <div class="mail-box-header">
                    <div class="pull-right tooltip-demo">
                    </div>
                    <h2>
                        写信
                    </h2>
                </div>
                <div class="mail-box">

                    <h:form class="form-horizontal">
                        <div class="mail-body">


                            <div class="form-group">
                                <label class="col-sm-2 control-label">学院：</label>

                                <div class="col-sm-10">
<!--                                    <h:inputText styleClass="form-control" value="#{notification.major}"/>-->
                                    <h:outputText styleClass="form-control" value="#{notification.major}"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">主题：</label>

                                <div class="col-sm-10">
<!--                                    <h:inputText styleClass="form-control" value="#{notification.title}"/>-->
                                    <h:outputText styleClass="form-control" value="#{notification.title}"/>
                                </div>
                            </div>
                        <div class="form-group">
                        <label class="col-sm-2 control-label">内容：</label>

                        <div class="col-sm-10">
                            <h:outputText value="#{notification.content}" escape="false" styleClass="summernote"/>

                        </div>
                        </div>

                        </div>


                        <div class="mail-body text-right tooltip-demo">
                            <h:commandButton styleClass="btn btn-sm btn-primary" value="朕已阅" action="mail_show_tostudents.xhtml"/>
                        </div>

                        <div class="clearfix"></div>
                    </h:form>


                </div>
            </div>
        </div>
    </div>

    <!-- 全局js -->
    <script type="text/javascript" src="../../js/jquery.min.js?v=2.1.4"></script>
    <script type="text/javascript" src="../../js/bootstrap.min.js?v=3.3.6"></script>

    <!-- 自定义js -->
    <script type="text/javascript" src="../../js/content.js?v=1.0.0"></script>


    <!-- iCheck -->
    <script type="text/javascript" src="../../js/plugins/iCheck/icheck.min.js"></script>

    <!-- SUMMERNOTE -->
    <script type="text/javascript">
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });


            $('.summernote').summernote({
                lang: 'zh-CN'
            });

        });
        var edit = function () {
            $('.click2edit').summernote({
                focus: true
            });
        };
        var save = function () {
            var aHTML = $('.click2edit').code(); //save HTML If you need(aHTML: array).
            $('.click2edit').destroy();
        };
    </script>


</h:body>

</html>